import request from '@/utils/request'

// 查询视图属性列表
export function listViewbutton(query) {
  return request({
    url: '/rva/viewbutton/list',
    method: 'get',
    params: query
  })
}

// 查询视图属性详细
export function getViewbutton(id) {
  return request({
    url: '/rva/viewbutton/' + id,
    method: 'get'
  })
}

// 新增视图属性
export function addViewbutton(data) {
  return request({
    url: '/rva/viewbutton',
    method: 'post',
    data: data
  })
}

// 修改视图属性
export function updateViewbutton(data) {
  return request({
    url: '/rva/viewbutton',
    method: 'put',
    data: data
  })
}

// 删除视图属性
export function delViewbutton(id) {
  return request({
    url: '/rva/viewbutton/' + id,
    method: 'delete'
  })
}

// 导出视图属性
export function exportViewbutton(query) {
  return request({
    url: '/rva/viewbutton/export',
    method: 'get',
    params: query
  })
}